Module-level declarations

Types

Link copied to clipboard
entity land_share
Link copied to clipboard
Link copied to clipboard
struct plot_fee
Link copied to clipboard
struct plot_share
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
function _check_land_share(griddable: instance, account_id: byte_array): boolean
Link copied to clipboard
function _resolve_share_invite_by_evm(sharee_evm: byte_array, account_id: byte_array): byte_array
Link copied to clipboard
function _resolve_share_invite_by_username(sharee_name: text, account_id: byte_array): byte_array
Link copied to clipboard
@extend(check_ownership_hook) function check_has_access(griddable: instance, account_id: byte_array, cells: set<location>): map<text, boolean>
Link copied to clipboard
@extend(check_plot_access) function check_has_plot_access(account_id: byte_array, plot_id: integer): map<text, boolean>
Link copied to clipboard
@extend(after_transfer) function (account: account, original: instance, to_id: byte_array, quantity: integer)
Link copied to clipboard
function get_shares_dto(plot_id: integer): list<plot_share>
Link copied to clipboard
function handle_fee_transfer(plot_id: integer, account: account, amount: integer, token_name: text)
Link copied to clipboard
function invite_sharee(plot_id: integer, evm_address_strategy: () -> byte_array, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@extendable function on_sharee_removed(account_id: byte_array, plot_id: integer)
Link copied to clipboard
Link copied to clipboard
@extend(on_claim_free_tokens) function transfer_fee_on_claimed_free_tokens(plot_id: integer, account: account, amount: integer, token_name: text)
Link copied to clipboard
@extend(on_recurring_quest_complete) function transfer_fee_on_recurring_quest_complete(plot_id: integer, account: account, amount: integer, token_name: text)
Link copied to clipboard
function verify_ownership_and_sharee_limit(account_id: byte_array, plot_id: integer)

Queries

Link copied to clipboard
@mount("land_sharing.get_all_sharees_for_plot") query get_all_sharees_for_plot(plot_id: integer): plot_sharees
Link copied to clipboard
@mount("land_sharing.get_all_users_sharees") query get_all_users_sharees(account_id: byte_array): plot_sharees
Link copied to clipboard
@mount("land_sharing.get_land_sharing_configs") query get_land_sharing_configs(): (enabled: boolean, sharing_fee_update_rate_in_millis: integer, base_plot_sharing_fee_percentage: decimal, max_sharees_per_plot: integer)
Link copied to clipboard
@mount("land_sharing.get_plot_sharing_fee") query get_plot_sharing_fee(plot_id: integer): plot_fee
Link copied to clipboard
@mount("land_sharing.get_users_shared_plots_by_account") query get_users_shared_plots_by_account(account_id: byte_array): list<integer>
Link copied to clipboard
@mount("land_sharing.get_users_shared_plots_by_evm") query get_users_shared_plots_by_evm(evm_address: byte_array): list<integer>

Operations

Link copied to clipboard
@mount("land_sharing.invite_sharee_by_evm") operation invite_sharee_by_evm(plot_id: integer, sharee_evm: byte_array, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("land_sharing.invite_sharee_by_username") operation invite_sharee_by_username(plot_id: integer, sharee_name: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("land_sharing.remove_sharee_by_evm") operation remove_sharee_by_evm(plot_id: integer, sharee_evm: byte_array, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("land_sharing.remove_sharee_by_username") operation remove_sharee_by_username(plot_id: integer, sharee_name: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("land_sharing.set_global_land_sharing_parameters") operation set_global_land_sharing_parameters(enabled: boolean, sharing_fee_update_rate_in_millis: integer, base_plot_sharing_fee_percentage: integer, max_sharees_per_plot: integer)